home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Add-Ons / CodeWarrior / DASM 2.0 / DASM Src.sit / SRC / DASMPREF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-16  |  1.2 KB  |  40 lines

  1. //=====================================================================
  2. //    IFD Macro Data Assembler Preferences Definitions
  3. //
  4. //    Used by Mac Assembler & Panel, as well as DOS control program
  5. //=====================================================================
  6.  
  7. #ifndef __DASMPrefs__        // we get included twice to ease DOS usage!
  8. #define __DASMPrefs__
  9.  
  10. // internal codes for project type
  11.  
  12. enum {
  13.     kProjTypeBinary,
  14.     kProjTypeResource,
  15.     kProjTypeLinked
  16. };
  17.  
  18. // Preferences structure. Set by panel, and used by Assembler
  19.  
  20. #define DASM_PREFSVERSION 0x0300
  21.  
  22. typedef struct DASMPref
  23. {
  24.     short    version;        // version # of prefs data (MUST be first!)
  25.     short    swap;                // swap output (words and/or longs, for 80x86 code)
  26.     ResType type;
  27.     short    id;
  28.     short    output;            // output type
  29.  
  30.     short    maxerrs;        // max # of errs before aborting
  31.     short    nowarns;        // != 0 means warnings are errors
  32.     short    nopaths;        // if true, PC paths are stripped, else converted
  33.  
  34.     char    extension[8];    // extension for output file. Defaults to .BIN
  35.     char    local;                // local symbol. Defaults to '.' (period)
  36.     char    filler;                // REQUIRED! (local[1] = 0 !)
  37. } DASMPref, *DASMPrefPtr, **DASMPrefHandle;
  38.  
  39. #endif
  40.